package de.cbf.cam.dsa.person.birth_data_generator.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.person.birth_data_generator.act.ActivatorBirthDataGenerator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 *
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = ActivatorBirthDataGenerator.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.P_DEFAULT_CURRENT_YEAR, 1028);
		store.setDefault(PreferenceConstants.P_DEFAULT_MIN_AGE, 3);
		store.setDefault(PreferenceConstants.P_DEFAULT_MAX_AGE, 80);
	}

}
